import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);
import Home from "../views/HomeV/Home.vue";
const routes = [
  {
    path: "/",
    redirect: "/Home",
  },
  {
    path: "/Home",
    name: "Home",
    component: Home,
  },
  {
    path: "/New",
    name: "New",
    component: () => import("../views/NewV/newV.vue"),
  },
  {
    path: "/Service",
    name: "Service",
    component: () => import("../views/ServiceV/ServiceAll.vue"),
  },
  {
    path: "/Personal",
    name: "Personal",
    component: () => import("../views/PersonalV/PersonalV.vue"),
  },
  {
    path: "/Park/index",
    name: "Park",
    component: () => import("../views/Park/Park.vue"),
  },
  {
    path: "/metro_query/index",
    name: "MetroQuery",
    component: () => import("../views/MetroQuery/MetroQuery.vue"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
